package models

import (
	"database/sql"
	_ "github.com/go-sql-driver/mysql"
	"time"
)

type Product struct {
	ID          uint         `gorm:"primarykey" json:"id" form:"id"`
	CreatedAt   time.Time    `json:"-"`
	UpdatedAt   time.Time    `json:"-"`
	DeletedAt   sql.NullTime `gorm:"index" json:"-"`
	Title       string       `json:"title"`
	Name        string       `json:"name"`
	Price       float64      `json:"price"`
	Value       float64      `json:"value"`
	Pics        string      `json:"pics"`
	Description string       `json:"description"`
}
